package game.source.price;

import game.source.gui.price.GuiPriceLevelUp;
import game.source.ships.PlayerShip;
import game.source.shot.GuiShotInterface.Level;

import java.awt.Point;

/**
 *PriceLevelUp:
 *	Realiza a ação de LevelUp no player
 */
public class PriceLevelUp extends Price {
	
	public PriceLevelUp(GuiPriceLevelUp gui,Point start,PlayerShip player){
		super(gui,start,player);
	}

	@Override
	public void action(){
		switch (this.getPlayer().getLevel()) {
		case BASIC:
			this.getPlayer().setLevel(Level.MEDIUM);
			break;
		case MEDIUM:
			this.getPlayer().setLevel(Level.MAX);
			break;
		default:
			break;
		}
	}
}
